import { Entity, Column, Index } from 'typeorm';
import { BaseEntity } from '../../base/entity/base';

@Entity('provider_visit_log', { comment: '服务人员访问记录' })
export class ProviderVisitLogEntity extends BaseEntity {
    @Index()
    @Column({ comment: '服务人员ID', type: 'int', nullable: false })
    providerId: number;

    @Index()
    @Column({ comment: '用户ID', type: 'int', nullable: false })
    userId: number;
}

